package 业务代表模式.service;

import 业务代表模式.BusinessService;
import 业务代表模式.impl.EJBService;
import 业务代表模式.impl.JMSService;

//业务查询服务
public class BusinessLookUp {
   public BusinessService getBusinessService(String serviceType){
      if(serviceType.equalsIgnoreCase("EJB")){
         return new EJBService();
      }else {
         return new JMSService();
      }
   }
}
